import request from '@/utils/request'
export function getSimulationList(data) {
    // 获取任务列表
    return request({
        url: '/simulation-diagnosis/publishPage',
        method: 'post',
        data
    })
}

export function addSimulation(data) {
    // 添加任务
    return request({
        url: '/task-exam/save',
        method: 'post',
        data
    })
}

export function editSimulation(data) {
    // 修改任务
    return request({
        url: '/task-exam/update',
        method: 'post',
        data
    })
}

export function deleteSimulation(data) {
    // 删除任务
    return request({
        url: '/task-exam/delete',
        method: 'post',
        data
    })
}

export function detailSimulation(id) {
    // 任务详情
    return request({
        url: `/task-exam/select/${id}`,
        method: 'post'
    })
}


export function paperSimulation(data) {
    // 任务详情
    return request({
        url: `/simulation-diagnosis/getPageList`,
        method: 'post',
        data
    })
}

export function submitSimulation(data) {
    // 任务详情
    return request({
        url: `/simulation-diagnosis-qa/answerSubmit`,
        method: 'post',
        data
    })
}